home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource4
/
272_01
/
gtodfunc.doc
< prev
next >
Wrap
Text File
|
1987-07-17
|
799b
|
39 lines
NAME
gtodsub -- Get time of day to file pointer
gtodstr -- Get time of day to a string
SYNOPSIS
void gtodsub(fp);
FILE *fp;
void gtodstr(str);
char *str;
DESCRIPTION
This function reads the system date and time and sends them in a
formatted string to the specified output channel, or to a string.
EXAMPLE
gtodsub(stdout); /* send date/time to stdout */
char string[30];
gtodstr(string);
printf("date and time are %s\n", string); /* same result */
This function is found in SMDLx.LIB for the Datalight Compiler.